//
//  LFFoodTableViewCell.m
//  College
//
//  Created by LF on 2018/11/7.
//  Copyright © 2018 MuXi. All rights reserved.
//

#import "LFFoodTableViewCell.h"

@implementation LFFoodTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setFood:(Food *)food {
    self.textLabel.text = food.name;
    self.textLabel.textColor = food.status == 0 ? UIColor.redColor : UIColor.blackColor;
    if (food.status == 0) {
        self.textLabel.textColor = UIColor.redColor;
        self.textLabel.font = [UIFont boldSystemFontOfSize:24];
    } else {
        self.textLabel.textColor = UIColor.blackColor;
        self.textLabel.font = [UIFont systemFontOfSize:17.0];
    }
}

@end
